﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EGEHaina.Areas.General.Models;
using System.ComponentModel.DataAnnotations;
using EGEHaina.Areas.People.Models;

namespace EGEHaina.Areas.Contract.Models
{
    public class Contract
    {
        public int ContractId { get; set; }

        [Required]
        public string Requester { get; set; }

        [Required]
        [DataType(DataType.Date)]
        public DateTime RequestDate { get; set; }

        //[Required]
        //public int CompanyId { get; set; }
        //public virtual Company Company { get; set; }

        [Required]
        [DataType(DataType.Date)]
        public DateTime ExecutionDate { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        [DataType(DataType.Date)]
        public DateTime DurationFrom { get; set; }

        [Required]
        [DataType(DataType.Date)]
        public DateTime DurationTo { get; set; }

        public int ContractTypeId { get; set; }
        public virtual ContractType ContractType { get; set; }

        [DataType(DataType.EmailAddress)]
        public string ThirdPartyEmail { get; set; }

        [Required]
        public int DepartmentId { get; set; }
        public virtual Department Department { get; set; }

        [Required]
        [DataType(DataType.Currency)]
        public int TotalValue { get; set; }

        [Required]
        public string ContractingParty { get; set; }

        public string Description { get; set; }
    }
}